{{#each states}}
{{#note}}
# {{{.}}}
{{/note}}
{{#quotifyState name}}{{/quotifyState~}}
    {{#hasExtendedAttributes}} [{{#typeExplicitlySet}}{{#type}}type={{{.}}} {{/type}}{{/typeExplicitlySet}}{{#label}}label="{{{.}}}"{{/label}}{{#color}} color="{{{.}}}"{{/color}}{{#class}} class="{{{.}}}"{{/class}}{{#if active}} active{{/if}}]{{/hasExtendedAttributes~}}
    {{#if actions}}: {{/if}}{{#actions}}{{#quotifyActions .}}{{/quotifyActions}}{{/actions~}}
    {{#statemachine}} {
    {{> smcat.template.hbs}}
}{{/statemachine~}}
{{#if @last}};{{else}},{{/if}}
{{/each}}

{{#transitions}}
{{#note}}
# {{{.}}}
{{/note}}
{{#quotifyState from}}{{/quotifyState}} => {{#quotifyState to}}{{/quotifyState~}}
    {{#hasExtendedAttributes}} [{{#color}}color="{{{.}}}"{{/color~}} {{~#type}} type={{{.}}}{{/type~}}]{{/hasExtendedAttributes~}}
    {{#label}}: {{#quotifyLabel .}}{{/quotifyLabel}}{{/label}};
{{/transitions}}
